/**
 * 
 */
package com.elite.groovy.callback

import groovy.json.* //导入grooby的json解析api包
import java.util.Map;
import com.elite.groovy.util.EliteBean;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.wisdge.utils.RandomUtils;
import com.elite.groovy.util.Util;
import cn.com.elite.PropertiesUtil;
/**
 * 
 * @author cosson
 *
 */
public class SYNCtimer implements ServiceBackInvoke {
	private static final Log log=LogFactory.getLog(SYNCtimer.class);
	private String charset = "utf-8"; //设置字符集
	private int timeout = 100000; //设置请求超时时间
	private int enableSSLflag = 0;
	public String doCallBack(EliteBean eliteBean, HttpServletRequest request, HttpServletResponse response){
			PropertiesUtil properties = new PropertiesUtil();		
			def crmurl = properties.readValue("crmurl"); //获取配置文件接口地址
			def admin = properties.readValue("admin"); //账号
			def pwd = properties.readValue("ped"); //密码
			def type="yyyyMMdd";
			def time=Util.getNowString(type);
			def cururl=crmurl+"VIPsync?admin="+admin+"&pwd="+pwd+"&time="+time;			
			def OAback=Util.doHttpGet(cururl,charset,timeout,enableSSLflag);
	}
	
}
